import request from '@/utils/request';

export async function get${className}ByPage (params: any) {
    return request('/api/${apiAlias}/get${className}ByPage', {
    method: 'POST',
    data: params,
  });
}



export async function add${className} (params: any) {
    return request('/api/${apiAlias}/add${className}', {
    method: 'POST',
    data: params,
  });
}

export async function update${className} (params: any) {
    return request('/api/${apiAlias}/update${className}', {
    method: 'POST',
    data: params,
  });
}

export async function del${className} (params: any) {
    return request('/api/${apiAlias}/del${className}', {
    method: 'POST',
    data: params,
  });
}


export async function export${className}(params: any) {
    return request('/api/${apiAlias}/export${className}', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { get${className}ByPage, add${className}, update${className}, del${className}, export${className} }
